package com.kgdev.cweb.entities.pub;

import java.io.Serializable;

import javax.persistence.Column;
import javax.persistence.Entity;
import javax.persistence.Id;
import javax.persistence.NamedQueries;
import javax.persistence.NamedQuery;
import javax.persistence.Table;

import com.kgdev.cweb.entities.ManagedEntity;

/**
 * The persistent class for the pub_client_role database table.
 * 
 */
@Entity
@NamedQueries(value = { @NamedQuery(name = "ClientRole.findAll", query = "select c from ClientRole c") })
@Table(name = "pub_client_role")
public class ClientRole implements Serializable, ManagedEntity {
	private static final long serialVersionUID = 1L;
	
	public static ClientRole EMPTY_ROLE = new ClientRole("","");

	@Id
	@Column(name = "role", unique = true, nullable = false, length = 45)
	private String value;

	@Column(length = 45)
	private String description;

	public ClientRole() {
	}

	private ClientRole(String value, String description) {
		setValue(value);
		setDescription(description);
	}

	public String getValue() {
		return this.value;
	}

	public void setValue(String value) {
		this.value = value;
	}

	public String getDescription() {
		return this.description;
	}

	public void setDescription(String description) {
		this.description = description;
	}

}